package net.uhuijia.sys.syssetting.clientservice;

import org.springframework.stereotype.Component;

import feign.hystrix.FallbackFactory;
import net.uhuijia.constants.FallbackConstants;

@Component // 不要忘记添加，不要忘记添加
public class SysSettingClientServiceFallbackFactory 
implements FallbackFactory<SysSettingClientService>{

	@Override
	public SysSettingClientService create(Throwable arg0) {
		return new SysSettingClientService(){

			@Override
			public String setValueByKey(String key,String value) {
				return FallbackConstants.DEFAULT_STRING;
			}

			@Override
			public String getValueByKey(String key) {
				return FallbackConstants.DEFAULT_STRING;
			}
		};
	}

}
